package com.mtons.mblog.modules.repository;

import com.mtons.mblog.modules.entity.NavType;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

public interface NavTypeRepository extends JpaRepository<NavType, Integer>, JpaSpecificationExecutor<NavType> {
	
	@Query("select coalesce(max(weight), 0) from NavType")
	int maxWeight();
}
